package org.to_zero.ssm.sdm.service;

import org.to_zero.ssm.sdm.entity.User;
import org.to_zero.ssm.sdm.entity.vo.ResponseEntity;

import javax.servlet.http.HttpServletRequest;

public interface AdminService {
    ResponseEntity login(String username, String password, String verifyCode, boolean isRememberMe);

    ResponseEntity register(User user);

    ResponseEntity logout(String token);

    ResponseEntity getAdmin(String token);

    ResponseEntity rememberMe();

    ResponseEntity changePassword(Integer id, String currentPassword, String password);

    ResponseEntity changeProfile(User user, HttpServletRequest request);
}
